/**
 * Created by bolin on 2016/11/23.
 */

var math = {
    constants: {
        rectangle: {
            width: 120,
            height: 60
        },
        round: {
            r: 30
        }
    },
    point: function (x, y) {
        return {
            'x': x,
            'y': y
        }
    },
    position: function (point) {
        return math.point(point.x - math.constants.rectangle.width / 2, point.y - math.constants.rectangle.height / 2);
    }
}
